package com.meituan.sdk.model.ddzh.common.grayQueryHitSessionGrayPoi;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询命中session灰度的门店
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/gray/queryHitSessionGrayPoi",
    businessId = 58,
    apiVersion = "10002",
    apiName = "gray_query_hit_session_gray_poi",
    needAuth = false
)
public class GrayQueryHitSessionGrayPoiRequest implements MeituanRequest<GrayQueryHitSessionGrayPoiResponse> {
    /**
    * <p data-diff-id="ct-diff-id-05060b44-cd45-40fd-be9e-c309390e7b06">北极星应用</p>
    */
    @NotBlank(message = "appKey不能为空")
    @SerializedName("appKey")
    private String appKey;
    /**
    * <p data-diff-id="ct-diff-id-a3b9308f-2944-4f72-8f61-3c91966191df">北极星应用对应的session</p>
    */
    @NotBlank(message = "session不能为空")
    @SerializedName("session")
    private String session;
    @NotNull(message = "page不能为空")
    @SerializedName("page")
    private Integer page;
    @NotNull(message = "size不能为空")
    @SerializedName("size")
    private Integer size;

    public String getAppKey() {
        return appKey;
    }
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }
    public String getSession() {
        return session;
    }
    public void setSession(String session) {
        this.session = session;
    }
    public Integer getPage() {
        return page;
    }
    public void setPage(Integer page) {
        this.page = page;
    }
    public Integer getSize() {
        return size;
    }
    public void setSize(Integer size) {
        this.size = size;
    }


    @Override
    public MeituanResponse<GrayQueryHitSessionGrayPoiResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<GrayQueryHitSessionGrayPoiResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "GrayQueryHitSessionGrayPoiRequest{" + "appKey=" + appKey + "," + "session=" + session + "," + "page=" + page + "," + "size=" + size + "}";
    }
}
